package com.woniu.form;

import com.woniu.constants.ErrorConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Description:
 * @Author: woniu
 * @date: 2024/1/16 9:13
 */
@Builder
@Accessors(chain = true)
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel("抢红包表单")
public class OpenRedPacketForm implements Serializable {
    private static final long serialVersionUID = 8533312757433007186L;

    @ApiModelProperty(value = "第三方平台的uOpenid")
    private String uOpenid;

    @ApiModelProperty(value = "红包ID")
    private Integer redPacketId;

    @ApiModelProperty(value = "验证签名")
    @NotBlank(message = ErrorConstants.SYS_SIGN_ERROR)
    private String sign;
}
